<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxPlane.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('PxPlane_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">PxPlane.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="PxPlane_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// modification, are permitted provided that the following conditions</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// are met:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//  * Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//    documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//  * Neither the name of NVIDIA CORPORATION nor the names of its</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//    contributors may be used to endorse or promote products derived</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//    from this software without specific prior written permission.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS &#39;&#39;AS IS&#39;&#39; AND ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">// Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#ifndef PXFOUNDATION_PXPLANE_H</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define PXFOUNDATION_PXPLANE_H</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxMath_8h.html">foundation/PxMath.h</a>&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxVec3_8h.html">foundation/PxVec3.h</a>&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacephysx.html">physx</a></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;{</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classPxPlane.html">   50</a></span>&#160;<span class="keyword">class </span><a class="code" href="classPxPlane.html">PxPlane</a></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;{</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <span class="keyword">public</span>:</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classPxPlane.html#aa91bd50f689e65d8df16b9bc451adbe4">   56</a></span>&#160;    <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxPlane.html#aa91bd50f689e65d8df16b9bc451adbe4">PxPlane</a>()</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    {</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classPxPlane.html#a5d449753bd941b2ac7d4f507e53ff2b9">   63</a></span>&#160;    <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxPlane.html#a5d449753bd941b2ac7d4f507e53ff2b9">PxPlane</a>(<span class="keywordtype">float</span> nx, <span class="keywordtype">float</span> ny, <span class="keywordtype">float</span> nz, <span class="keywordtype">float</span> distance) : n(nx, ny, nz), d(distance)</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    {</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    }</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classPxPlane.html#a8999609dacee1ba2ac0011f481014d08">   70</a></span>&#160;    <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxPlane.html#a8999609dacee1ba2ac0011f481014d08">PxPlane</a>(<span class="keyword">const</span> <a class="code" href="classPxVec3.html">PxVec3</a>&amp; normal, <span class="keywordtype">float</span> distance) : n(normal), d(distance)</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    {</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    }</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classPxPlane.html#a0b6a4463b95366c1f9a12a84d57509bd">   77</a></span>&#160;    <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxPlane.html#a0b6a4463b95366c1f9a12a84d57509bd">PxPlane</a>(<span class="keyword">const</span> <a class="code" href="classPxVec3.html">PxVec3</a>&amp; point, <span class="keyword">const</span> <a class="code" href="classPxVec3.html">PxVec3</a>&amp; normal)</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    : n(normal), d(-point.dot(n)) <span class="comment">// p satisfies normal.dot(p) + d = 0</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    {</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    }</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classPxPlane.html#a3ce0657187ece1138c35ea775e4d075e">   85</a></span>&#160;    <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxPlane.html#a3ce0657187ece1138c35ea775e4d075e">PxPlane</a>(<span class="keyword">const</span> <a class="code" href="classPxVec3.html">PxVec3</a>&amp; p0, <span class="keyword">const</span> <a class="code" href="classPxVec3.html">PxVec3</a>&amp; p1, <span class="keyword">const</span> <a class="code" href="classPxVec3.html">PxVec3</a>&amp; p2)</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    {</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        n = (p1 - p0).cross(p2 - p0).getNormalized();</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        d = -p0.<a class="code" href="classPxVec3.html#a4c136327953ea1b09be10d979279b7dc">dot</a>(n);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    }</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classPxPlane.html#ad22c1707d0fcda7a901d8880e61c2415">   94</a></span>&#160;    <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="classPxPlane.html#ad22c1707d0fcda7a901d8880e61c2415">operator==</a>(<span class="keyword">const</span> <a class="code" href="classPxPlane.html">PxPlane</a>&amp; p)<span class="keyword"> const</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <span class="keywordflow">return</span> n == p.<a class="code" href="classPxPlane.html#a5697986eb1240eafe0261f453c5a7065">n</a> &amp;&amp; d == p.<a class="code" href="classPxPlane.html#a7cf263ac8ebddc47953a3fcbfc0a0455">d</a>;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    }</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classPxPlane.html#a3fe0df70f1ed956da1f29c1623c892ec">   99</a></span>&#160;    <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">float</span> <a class="code" href="classPxPlane.html#a3fe0df70f1ed956da1f29c1623c892ec">distance</a>(<span class="keyword">const</span> <a class="code" href="classPxVec3.html">PxVec3</a>&amp; p)<span class="keyword"> const</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keywordflow">return</span> p.<a class="code" href="classPxVec3.html#a4c136327953ea1b09be10d979279b7dc">dot</a>(n) + d;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    }</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classPxPlane.html#a48cf571ee8066b645cdd21def9e0ed0d">  104</a></span>&#160;    <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="classPxPlane.html#a48cf571ee8066b645cdd21def9e0ed0d">contains</a>(<span class="keyword">const</span> <a class="code" href="classPxVec3.html">PxVec3</a>&amp; p)<span class="keyword"> const</span></div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="group__foundation.html#gaf72e1dce9e874da7b92cbc0ea5e4e30d">PxAbs</a>(distance(p)) &lt; (1.0e-7f);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    }</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classPxPlane.html#a304c1868b47814e943b1ec95ecdf4f57">  112</a></span>&#160;    <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxVec3.html">PxVec3</a> <a class="code" href="classPxPlane.html#a304c1868b47814e943b1ec95ecdf4f57">project</a>(<span class="keyword">const</span> <a class="code" href="classPxVec3.html">PxVec3</a>&amp; p)<span class="keyword"> const</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="keywordflow">return</span> p - n * distance(p);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    }</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classPxPlane.html#a3b03103cfc22de7003ba4701a748a92c">  120</a></span>&#160;    <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="classPxVec3.html">PxVec3</a> <a class="code" href="classPxPlane.html#a3b03103cfc22de7003ba4701a748a92c">pointInPlane</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="keyword">    </span>{</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;        <span class="keywordflow">return</span> -n * d;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    }</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="classPxPlane.html#a37c94eda03f24e3caed2e7739940c14a">  129</a></span>&#160;    <a class="code" href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a> <a class="code" href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="classPxPlane.html#a37c94eda03f24e3caed2e7739940c14a">normalize</a>()</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    {</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <span class="keywordtype">float</span> denom = 1.0f / n.magnitude();</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        n *= denom;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        d *= denom;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    }</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classPxPlane.html#a5697986eb1240eafe0261f453c5a7065">  136</a></span>&#160;    <a class="code" href="classPxVec3.html">PxVec3</a> <a class="code" href="classPxPlane.html#a5697986eb1240eafe0261f453c5a7065">n</a>; </div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classPxPlane.html#a7cf263ac8ebddc47953a3fcbfc0a0455">  137</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="classPxPlane.html#a7cf263ac8ebddc47953a3fcbfc0a0455">d</a>;  </div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;};</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;} <span class="comment">// namespace physx</span></div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="preprocessor">#endif // #ifndef PXFOUNDATION_PXPLANE_H</span></div><div class="ttc" id="namespacephysx_html"><div class="ttname"><a href="namespacephysx.html">physx</a></div><div class="ttdef"><b>Definition:</b> GuContactBuffer.h:37</div></div>
<div class="ttc" id="classPxPlane_html_a304c1868b47814e943b1ec95ecdf4f57"><div class="ttname"><a href="classPxPlane.html#a304c1868b47814e943b1ec95ecdf4f57">PxPlane::project</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 project(const PxVec3 &amp;p) const</div><div class="ttdoc">projects p into the plane </div><div class="ttdef"><b>Definition:</b> PxPlane.h:112</div></div>
<div class="ttc" id="classPxVec3_html_a4c136327953ea1b09be10d979279b7dc"><div class="ttname"><a href="classPxVec3.html#a4c136327953ea1b09be10d979279b7dc">PxVec3::dot</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float dot(const PxVec3 &amp;v) const</div><div class="ttdoc">returns the scalar product of this and other. </div><div class="ttdef"><b>Definition:</b> PxVec3.h:276</div></div>
<div class="ttc" id="classPxPlane_html_a7cf263ac8ebddc47953a3fcbfc0a0455"><div class="ttname"><a href="classPxPlane.html#a7cf263ac8ebddc47953a3fcbfc0a0455">PxPlane::d</a></div><div class="ttdeci">float d</div><div class="ttdoc">The distance from the origin. </div><div class="ttdef"><b>Definition:</b> PxPlane.h:137</div></div>
<div class="ttc" id="group__foundation_html_ga6a774eed3cad34b0f636332a3d28c6bb"><div class="ttname"><a href="group__foundation.html#ga6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a></div><div class="ttdeci">#define PX_FORCE_INLINE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:351</div></div>
<div class="ttc" id="classPxPlane_html"><div class="ttname"><a href="classPxPlane.html">PxPlane</a></div><div class="ttdoc">Representation of a plane. </div><div class="ttdef"><b>Definition:</b> PxPlane.h:50</div></div>
<div class="ttc" id="classPxPlane_html_a48cf571ee8066b645cdd21def9e0ed0d"><div class="ttname"><a href="classPxPlane.html#a48cf571ee8066b645cdd21def9e0ed0d">PxPlane::contains</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE bool contains(const PxVec3 &amp;p) const</div><div class="ttdef"><b>Definition:</b> PxPlane.h:104</div></div>
<div class="ttc" id="classPxPlane_html_a3fe0df70f1ed956da1f29c1623c892ec"><div class="ttname"><a href="classPxPlane.html#a3fe0df70f1ed956da1f29c1623c892ec">PxPlane::distance</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float distance(const PxVec3 &amp;p) const</div><div class="ttdef"><b>Definition:</b> PxPlane.h:99</div></div>
<div class="ttc" id="classPxPlane_html_a8999609dacee1ba2ac0011f481014d08"><div class="ttname"><a href="classPxPlane.html#a8999609dacee1ba2ac0011f481014d08">PxPlane::PxPlane</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxPlane(const PxVec3 &amp;normal, float distance)</div><div class="ttdoc">Constructor from a normal and a distance. </div><div class="ttdef"><b>Definition:</b> PxPlane.h:70</div></div>
<div class="ttc" id="classPxPlane_html_a37c94eda03f24e3caed2e7739940c14a"><div class="ttname"><a href="classPxPlane.html#a37c94eda03f24e3caed2e7739940c14a">PxPlane::normalize</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE void normalize()</div><div class="ttdoc">equivalent plane with unit normal </div><div class="ttdef"><b>Definition:</b> PxPlane.h:129</div></div>
<div class="ttc" id="group__foundation_html_gaf72e1dce9e874da7b92cbc0ea5e4e30d"><div class="ttname"><a href="group__foundation.html#gaf72e1dce9e874da7b92cbc0ea5e4e30d">PxAbs</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE float PxAbs(float a)</div><div class="ttdoc">abs returns the absolute value of its argument. </div><div class="ttdef"><b>Definition:</b> PxMath.h:107</div></div>
<div class="ttc" id="PxMath_8h_html"><div class="ttname"><a href="PxMath_8h.html">PxMath.h</a></div></div>
<div class="ttc" id="classPxPlane_html_a5d449753bd941b2ac7d4f507e53ff2b9"><div class="ttname"><a href="classPxPlane.html#a5d449753bd941b2ac7d4f507e53ff2b9">PxPlane::PxPlane</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxPlane(float nx, float ny, float nz, float distance)</div><div class="ttdoc">Constructor from a normal and a distance. </div><div class="ttdef"><b>Definition:</b> PxPlane.h:63</div></div>
<div class="ttc" id="PxVec3_8h_html"><div class="ttname"><a href="PxVec3_8h.html">PxVec3.h</a></div></div>
<div class="ttc" id="classPxPlane_html_aa91bd50f689e65d8df16b9bc451adbe4"><div class="ttname"><a href="classPxPlane.html#aa91bd50f689e65d8df16b9bc451adbe4">PxPlane::PxPlane</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxPlane()</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> PxPlane.h:56</div></div>
<div class="ttc" id="classPxPlane_html_a0b6a4463b95366c1f9a12a84d57509bd"><div class="ttname"><a href="classPxPlane.html#a0b6a4463b95366c1f9a12a84d57509bd">PxPlane::PxPlane</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxPlane(const PxVec3 &amp;point, const PxVec3 &amp;normal)</div><div class="ttdoc">Constructor from a point on the plane and a normal. </div><div class="ttdef"><b>Definition:</b> PxPlane.h:77</div></div>
<div class="ttc" id="classPxPlane_html_ad22c1707d0fcda7a901d8880e61c2415"><div class="ttname"><a href="classPxPlane.html#ad22c1707d0fcda7a901d8880e61c2415">PxPlane::operator==</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_INLINE bool operator==(const PxPlane &amp;p) const</div><div class="ttdoc">returns true if the two planes are exactly equal </div><div class="ttdef"><b>Definition:</b> PxPlane.h:94</div></div>
<div class="ttc" id="classPxPlane_html_a3b03103cfc22de7003ba4701a748a92c"><div class="ttname"><a href="classPxPlane.html#a3b03103cfc22de7003ba4701a748a92c">PxPlane::pointInPlane</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxVec3 pointInPlane() const</div><div class="ttdoc">find an arbitrary point in the plane </div><div class="ttdef"><b>Definition:</b> PxPlane.h:120</div></div>
<div class="ttc" id="classPxPlane_html_a5697986eb1240eafe0261f453c5a7065"><div class="ttname"><a href="classPxPlane.html#a5697986eb1240eafe0261f453c5a7065">PxPlane::n</a></div><div class="ttdeci">PxVec3 n</div><div class="ttdoc">The normal to the plane. </div><div class="ttdef"><b>Definition:</b> PxPlane.h:136</div></div>
<div class="ttc" id="group__foundation_html_gacb03347b642a2a5bdea1f9b305a6fbec"><div class="ttname"><a href="group__foundation.html#gacb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a></div><div class="ttdeci">#define PX_INLINE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:336</div></div>
<div class="ttc" id="group__foundation_html_ga6e444d58dbf1459261fadc9b79594f63"><div class="ttname"><a href="group__foundation.html#ga6e444d58dbf1459261fadc9b79594f63">PX_CUDA_CALLABLE</a></div><div class="ttdeci">#define PX_CUDA_CALLABLE</div><div class="ttdef"><b>Definition:</b> PxPreprocessor.h:460</div></div>
<div class="ttc" id="classPxVec3_html"><div class="ttname"><a href="classPxVec3.html">PxVec3</a></div><div class="ttdoc">3 Element vector class. </div><div class="ttdef"><b>Definition:</b> PxVec3.h:49</div></div>
<div class="ttc" id="classPxPlane_html_a3ce0657187ece1138c35ea775e4d075e"><div class="ttname"><a href="classPxPlane.html#a3ce0657187ece1138c35ea775e4d075e">PxPlane::PxPlane</a></div><div class="ttdeci">PX_CUDA_CALLABLE PX_FORCE_INLINE PxPlane(const PxVec3 &amp;p0, const PxVec3 &amp;p1, const PxVec3 &amp;p2)</div><div class="ttdoc">Constructor from three points. </div><div class="ttdef"><b>Definition:</b> PxPlane.h:85</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_266c30cc99b40eba7d94345de82f8db9.html">packman-repo</a></li><li class="navelem"><a class="el" href="dir_44fe44e2771711da9c667697b685dcda.html">PxShared-public</a></li><li class="navelem"><a class="el" href="dir_e1dbf85b29c2f923267acb78e2c299dd.html">1.1.trunk.29467035</a></li><li class="navelem"><a class="el" href="dir_67f783feb5a64e036eee501a17b4317a.html">include</a></li><li class="navelem"><a class="el" href="dir_d5f223569182be7fb9b876919d20e64f.html">foundation</a></li><li class="navelem"><a class="el" href="PxPlane_8h.html">PxPlane.h</a></li>
    <li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
  </ul>
</div>
</body>
</html>
